package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserJournalReadService;
import com.gidgabs.modules.dao.TbUserJournalReadDao;
import com.gidgabs.modules.entity.TbUserJournalReadEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserJournalReadServiceImpl implements TbUserJournalReadService {
	@Autowired
	private TbUserJournalReadDao userJournalReadDao;
	
	@Override
	public TbUserJournalReadEntity queryObject(Integer id){
		return userJournalReadDao.queryObject(id);
	}
	
	@Override
	public List<TbUserJournalReadEntity> queryList(Map<String, Object> map){
		return userJournalReadDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userJournalReadDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserJournalReadEntity userJournalRead){
		userJournalReadDao.save(userJournalRead);
	}
	
	@Override
	public void update(TbUserJournalReadEntity userJournalRead){
		userJournalReadDao.update(userJournalRead);
	}
	
	@Override
	public void delete(Integer id){
		userJournalReadDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userJournalReadDao.deleteBatch(ids);
	}
	
}
